package cn.com.crazyrobot.mobile.model.services;

import cn.com.crazyrobot.mobile.model.bean.Mobile;
import cn.com.crazyrobot.mobile.model.dao.MobileDAO;

public class MobileService {

	public static Mobile save(Mobile mobile){
		Mobile tmp = MobileDAO.findByMobile(mobile.getMobile());
		if(tmp!=null){
			return tmp;
		}else{
			return MobileDAO.save(mobile);
		}
	}
	
	public static boolean isExisted(String fromPage){
		return MobileDAO.isExistedPage(fromPage);
	}
}
